

<form class="layui-form" lay-filter="J_ajaxForm_popup" action="/founder/edit" method="post">
      <script type="text/html" template>
        <input type="hidden" name="id" value="{{ d.params.id || 0 }}">
      </script>
  <div class="layui-form-item">
    <label class="layui-form-label">角色名称</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="name" value="{{ d.params.name || '' }}" lay-verify="" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
      <hr>
  <div class="layui-form-item">
    <label class="layui-form-label">权限管理</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="checkbox" name="auths[]" lay-skin="primary" title="管理员" value="admin_founder">
        <input type="checkbox" name="auths[]" lay-skin="primary" title="角色组" value="admin_role">
        <input type="checkbox" name="auths[]" lay-skin="primary" title="管理员日志" value="admin_role">
      </script>
    </div>
  </div>
  <hr>
  <div class="layui-form-item">
    <label class="layui-form-label">用户中心</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="checkbox" name="data[founder][index]" lay-skin="primary" title="WendID设置">
        <input type="checkbox" name="auths[]" lay-skin="primary" title="客户端管理" value="ucentre_client">
        <input type="checkbox" name="auths[]" lay-skin="primary" title="用户管理" value="ucentre_user">
        <input type="checkbox" name="data[founder][index]" lay-skin="primary" title="登录记录">
      </script>
    </div>
  </div>
  <hr>
  <div class="layui-form-item">
    <label class="layui-form-label">插件管理</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="checkbox" name="auths[]" lay-skin="primary" title="插件管理" value="plugin_addon">
      </script>
    </div>
  </div>
  {volist name="log" id="item"}
  <div class="layui-form-item">
    <label class="layui-form-label">{$item.title}</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        {volist name="item.list" id="value"}
        <input type="checkbox" name="auths[]" lay-skin="primary" title="{$value.title}" value="plugin_addon">
        {/volist}
      </script>
    </div>
  </div>
  <hr>
  {/volist}
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <button lay-submit lay-filter="J_ajax_submit_btn" class="layui-btn">提交</button>
    </div>
  </div>
</form>

<script>
;!function(){
  var $ = layui.$
  ,form = layui.form
  ,upload = layui.upload;

}();
</script>